package com.project.light.entity;

import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

@Data
@Table(name = "T_RealTimeData")
public class RealTimeData implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @Id
    @Column(name = "ID")
    private Integer id;

    /**
     * 站点
     */
    @Column(name = "StationID")
    private Integer stationID;

    @Column(name = "SysId")
    private Integer sysId;

    @Column(name = "StationCode")
    private String stationCode;

    /**
     * 通信id
     */
    @Column(name = "CommID")
    private Integer commID;

    /**
     * 区域id
     */
    @Column(name = "AreaID")
    private Integer areaID;

    /**
     * 行政区ID
     */
    @Column(name = "DistrictID")
    private Integer districtID;

    /**
     * 电表号
     */
    @Column(name = "MeterNumber")
    private String meterNumber;

    /**
     * 状态
     */
    @Column(name = "State")
    private Integer state;

    /**
     * A相电流
     */
    @Column(name = "Current01")
    private Double current01;

    /**
     * B相电流
     */
    @Column(name = "Current02")
    private Double current02;

    /**
     * C相电流
     */
    @Column(name = "Current03")
    private Double current03;

    /**
     * A相电压
     */
    @Column(name = "Voltage01")
    private Double voltage01;

    /**
     * B相电压
     */
    @Column(name = "Voltage02")
    private Double voltage02;

    /**
     * C相电压
     */
    @Column(name = "Voltage03")
    private Double voltage03;

    /**
     * 是否开灯
     */
    @Column(name = "DI")
    private Integer dI;

    /**
     * 电路掩码
     */
    @Column(name = "Mask")
    private Integer mask;

    /**
     * 数据时间
     */
    @Column(name = "staDate")
    private Date staDate;

    /**
     * 电量
     */
    @Column(name = "`AIData`")
    private Double aIData;

    /**
     * 集控手动
     */
    @Column(name = "autoRemote")
    private Integer autoRemote;

    /**
     * 遥控自动
     */
    @Column(name = "RemoteManual")
    private Integer remoteManual;

    /**
     * GPS状态
     */
    @Column(name = "GPSStatus")
    private Integer gPSStatus;

    /**
     * PLC状态
     */
    @Column(name = "PLCStatus")
    private Integer pLCStatus;

    /**
     * 节目状态
     */
    @Column(name = "programStatus")
    private Integer programStatus;

    /**
     * 站点状态
     */
    @Column(name = "staState")
    private Integer staState;

    /**
     * 通信状态
     */
    @Column(name = "comState")
    private Integer comState;

    /**
     * 前次能耗结算值
     */
    @Column(name = "LastSettlement")
    private Double lastSettlement;

    /**
     * 前次能耗结算时间
     */
    @Column(name = "LastSettlementTime")
    private Date lastSettlementTime;

    @Column(name = "CreatedDate")
    private Date createdDate;

    @Column(name = "UpdatedDate")
    private Date updatedDate;

}
